public class ArrayDemo1 {
    public static void main (String [] args) {
        String [] bookTitles = {"Java 编程基础", "数据结构与算法", "Python 入门", "数据库原理", "计算机网络"};
        System.out.println ("图书馆共有" + bookTitles.length + "本图书：");
        for (int i = 0; i < bookTitles.length; i++) {
            System.out.println ("第" + (i + 1) + "本：" + bookTitles [i]);
        }
    }
}
